package jnpf.model.ragFlow.chunk;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;

@Data
@ApiModel(description = "搜索结果分块")
public class SearchChunk {
    @ApiModelProperty(value = "分块内容")
    private String content;

    @ApiModelProperty(value = "内容标记")
    private String content_ltks;

    @ApiModelProperty(value = "文档ID")
    private String document_id;

    @ApiModelProperty(value = "文档关键词")
    private String document_keyword;

    @ApiModelProperty(value = "高亮内容")
    private String highlight;

    @ApiModelProperty(value = "分块ID")
    private String id;

    @ApiModelProperty(value = "图片ID")
    private String image_id;

    @ApiModelProperty(value = "关键词列表")
    private List<String> important_keywords;

    @ApiModelProperty(value = "知识库ID")
    private String kb_id;

    @ApiModelProperty(value = "位置信息")
    private List<String> positions;

    @ApiModelProperty(value = "相似度")
    private Double similarity;

    @ApiModelProperty(value = "术语相似度")
    private Double term_similarity;

    @ApiModelProperty(value = "向量相似度")
    private Double vector_similarity;
}
